package com.example.wangziqiao.myapplication.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.example.wangziqiao.myapplication.R;

/**
 * 促销信息view
 * Created by ThisIllusion on 2016/4/7.
 */
public class GrouponItemView extends LinearLayout {

    private ImageView ivImage;
    private TextView tvShortName;
    private TextView tvPrice;
    private TextView tvPromInfo;
    private TextView tvTimeScope;
    private TextView tvStatus;

    public GrouponItemView(Context context, AttributeSet attrs) {
        super(context, attrs);
        LayoutInflater.from(context).inflate(R.layout.groupon_item, this);
//        ivImage = (ImageView) findViewById(R.id.ivImage);
        tvShortName = (TextView) findViewById(R.id.tvShortName);
        tvPrice = (TextView) findViewById(R.id.tvPrice);
        tvPromInfo = (TextView) findViewById(R.id.tvPromInfo);
        tvTimeScope = (TextView) findViewById(R.id.tvTimeScope);
        tvStatus = (TextView) findViewById(R.id.tvStatus);
    }

    public ImageView getIvImage() {
        return ivImage;
    }

    public void setIvImage(ImageView ivImage) {
        this.ivImage = ivImage;
    }

    public TextView getTvShortName() {
        return tvShortName;
    }

    public void setTvShortName(TextView tvShortName) {
        this.tvShortName = tvShortName;
    }

    public TextView getTvPrice() {
        return tvPrice;
    }

    public void setTvPrice(TextView tvPrice) {
        this.tvPrice = tvPrice;
    }

    public TextView getTvPromInfo() {
        return tvPromInfo;
    }

    public void setTvPromInfo(TextView tvPromInfo) {
        this.tvPromInfo = tvPromInfo;
    }

    public TextView getTvTimeScope() {
        return tvTimeScope;
    }

    public void setTvTimeScope(TextView tvTimeScope) {
        this.tvTimeScope = tvTimeScope;
    }

    public TextView getTvStatus() {
        return tvStatus;
    }

    public void setTvStatus(TextView tvStatus) {
        this.tvStatus = tvStatus;
    }
}
